package com.ssy.lingxi.after.sale.entity;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 维修关联商品表
 * @author ds
 * @date 2020/4/28
 * @version 2.0.0
 */
@Entity
@Table(schema = "public", name = "as_repair_goods_detail_associated",
        indexes = {@Index(name = "as_repair_goods_detail_associated_repair_id_idx", columnList = "repairId"),
                   @Index(name = "as_repair_goods_detail_associated_repair_detail_id_idx", columnList = "repairDetailId")}
        )
public class RepairGoodsDetailAssociatedDO implements Serializable {
    private static final long serialVersionUID = -8622807352647563895L;

    /**
     * id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "repair_goods_detail_associated_seq")
    @SequenceGenerator(sequenceName = "as_repair_goods_detail_associated_seq", name = "repair_goods_detail_associated_seq", allocationSize = 1)
    private Long id;

    /**
     * 维修id
     */
    @Column(columnDefinition = "int8")
    private Long repairId;

    /**
     * 维修明细id
     */
    @Column(columnDefinition = "int8")
    private Long repairDetailId;

    /**
     * 商品ID
     */
    @Column(columnDefinition = "varchar(20)")
    private String productId;

    /**
     * 商品名称、规格
     */
    @Column(columnDefinition = "varchar(90)")
    private String productName;

    /**
     * 规格
     */
    @Column(columnDefinition = "varchar(40)")
    private String type;

    /**
     * 品类
     */
    @Column(columnDefinition = "varchar(16)")
    private String category;

    /**
     * 品牌
     */
    @Column(columnDefinition = "varchar(20)")
    private String brand;

    /**
     * 单位
     */
    @Column(columnDefinition = "varchar(16)")
    private String unit;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getRepairId() {
        return repairId;
    }

    public void setRepairId(Long repairId) {
        this.repairId = repairId;
    }

    public Long getRepairDetailId() {
        return repairDetailId;
    }

    public void setRepairDetailId(Long repairDetailId) {
        this.repairDetailId = repairDetailId;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }
}
